/**
 * Copyright (c) 2017 hadlinks, All Rights Reserved.
 */
package com.bugull.farm.core.control.task.callable;

import com.bugull.farm.core.cache.PropertiesCache;
import com.bugull.farm.core.store.CommandTask;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.util.concurrent.Callable;

/**
 * Project Name: bugu-farm-household
 * Package Name: com.bugull.farm.device.shortconn.server.control.task 
 * ClassName: UpperControlCallable 
 * Function: TODO ADD FUNCTION.  
 * date: 2017/7/20 16:31
 * @author songwei (songw@hadlinks.com)
 * @since JDK 1.8 
 */
public class UpperControlCallable implements Callable<Boolean> {

    protected CommandTask commandTask;//控制指令信息
    protected Long createTime;//任务创建时间
    protected PropertiesCache props = PropertiesCache.getInstance();
    private Logger logger = LogManager.getLogger(UpperControlCallable.class);

    public UpperControlCallable(CommandTask commandTask) {
        this.commandTask = commandTask;
        this.createTime = System.currentTimeMillis();
    }

    @Override
    public Boolean call() throws Exception {
        return Boolean.TRUE;
    }

    public CommandTask getCommandTask() {
        return commandTask;
    }

    public Long getCreateTime() {
        return createTime;
    }
}
